package cn.edu.zafu.bigdata.x.zhouyuyan;

public class VehicleTest {
    public static void main(String[] args) {
        Vehicle[] vehicles = new Vehicle[2];
        vehicles[0] = new Car();
        vehicles[1] = new Bicycle();

        for(Vehicle vehicle:vehicles){
            System.out.println(vehicle.move());
        }

    }
}
